package jmu.cyxwcy.librarymanagement.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.github.yulichang.wrapper.MPJLambdaWrapper;
import jmu.cyxwcy.librarymanagement.pojo.Book;
import jmu.cyxwcy.librarymanagement.pojo.Fines;
import jmu.cyxwcy.librarymanagement.mapper.FinesMapper;
import jmu.cyxwcy.librarymanagement.service.IFinesService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 
 * @since 2024-06-27
 */
@Service
public class FinesServiceImpl extends ServiceImpl<FinesMapper, Fines> implements IFinesService {
    @Autowired
    private FinesMapper finesMapper;
    @Override
    public IPage<Fines> join(IPage<Fines> page, MPJLambdaWrapper<Fines> queryWrapper) {
        return finesMapper.selectJoinPage(page, Fines.class, queryWrapper);
    }

    @Override
    public void updatePaymentStatus(Integer fineId,String paymentStatus) {
        finesMapper.updatePaymentStatus(fineId,paymentStatus);
    }
}
